package cn.tedu.admin.mall.pojo.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("mall_category")
public class CategoryPO implements Serializable {

    //AUTO不生效 truncate table   drop 区别
    @TableId(type = IdType.AUTO)
    Long id;
    String name;
    Long parentId;
    Long depth;
    String keywords;
    Long sort;
    String icon;
    Integer enable;
    Integer isParent;
    Integer isDisplay;
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime gmtCreate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    LocalDateTime gmtModified;

}
